// utils/examTypes.ts

/**
 * 考试相关类型定义
 */

export interface ExamPaperResponse {
  examPaper: ExamPaper;
  questionAnswerList: Question[];
}

export interface ExamPaper {
  id: number;
  paperCode: string;
  paperName: string;
}

export interface Question {
  questionId: number;
  questionNo: number;
  content: string;
  options: QuestionOption[];
  correctAnswer: string;
  userAnswer: string;
  answerAnalysis: string;
  showExplanation: boolean;
  favorite?: boolean; // 是否已收藏
}

export interface QuestionOption {
  questionNo: number;
  optionNo: string;
  content: string;
}

export interface ExamRecord {
  id: number;
  paperId: number;
  startTime: string;
  endTime: string;
  totalScore: number;
  duration: number;
  userScore: number;
  passStatus: boolean;
  paperName: string;
  examPeriod: number;
}